package com.cn.mapper.dao.db5.Equipment;

import com.cn.bean.pojo.bc.User;
import com.cn.bean.pojo.lbj.ComponentSingleRegistrationTable;
import com.cn.bean.pojo.lbj.SingleParameterItemCurrentDataTable;
import com.cn.bean.pojo.workOrder.BusinessItemWorkOrderPool;
import com.cn.bean.pojo.workOrder.GrindingResultMainTable;
import com.cn.bean.pojo.workOrder.GrindingResultSubTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GrindingResultDao {
    List<BusinessItemWorkOrderPool> selectGrindingWorkOrder(@Param("workOrderCode")String workOrderCode, @Param("page")int page, @Param("limit")int limit);
    List<GrindingResultMainTable>selectGrindingResultMain(GrindingResultMainTable grindingResultMainTable);
    List<GrindingResultMainTable>selectGrindingResultMainAll(GrindingResultMainTable grindingResultMainTable);
    List<GrindingResultMainTable>selectGrindingResultMainAl(GrindingResultMainTable grindingResultMainTable);
    List<GrindingResultMainTable>selectGrindingResultMainA(int workOrderNumber);
    List<User> selectWorker(User user);
    List<SingleParameterItemCurrentDataTable>selectCurrentDataTable(SingleParameterItemCurrentDataTable singleParameterItemCurrentDataTable);
    List<SingleParameterItemCurrentDataTable>selectCurrentDataTableAll(String partSingleID);
    List<ComponentSingleRegistrationTable>selectComponentSingleMain( @Param("page")int page, @Param("limit")int limit, @Param("uniqueCode")String uniqueCode);
    List<GrindingResultSubTable>selectGrindingResultSub(GrindingResultSubTable grindingResultSubTable);
    List<ComponentSingleRegistrationTable>selectComponentSingleMainAll(ComponentSingleRegistrationTable componentSingleRegistrationTable);
    List<GrindingResultSubTable>selectGrindingSub(int id);
    Boolean delGrindingSub(int id);
    Boolean updateComponentSingleRegistration(String uniqueCode);
    Boolean BfComponentSingleStatus(String uniqueCode);
    Boolean updateCurrentDataTable(SingleParameterItemCurrentDataTable singleParameterItemCurrentDataTable);
    Boolean insertGrindingResultMain(GrindingResultMainTable grindingResultMainTable);
    Boolean insertGrindingResultSub(GrindingResultSubTable grindingResultSubTable);
    Boolean updateGrindingAudit(int id);
    Integer getGrindingWorkOrderAutoid();
    Integer getGrindingResultSubTableAutoid();
    Boolean delGrindingAudit(int id);
    Boolean delGrindingSign(int id);
    Boolean addGrindingSign(int id);
    Boolean addGrindingSubSign(int id);
    Boolean delGrindingSubSign(int id);
}
